home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / ptv3n5.zip / GETPALET.SRC < prev    next >
Text File  |  1992-09-01  |  454b  |  13 lines

  1. FUNCTION TEditorApp.GetPalette: PPalette;
  2. CONST
  3.   { Set the help palettes to respectable default colors based
  4.     on the TApplication presets. }
  5.   CNewColor = CColor + CHelpColor;
  6.   CNewBlackWhite = CBlackWhite + CHelpBlackWhite;
  7.   CNewMonochrome = CMonochrome + CHelpMonochrome;
  8.   P: array[apColor..apMonochrome] of string[Length(CNewColor)] =
  9.          (CNewColor, CNewBlackWhite, CNewMonochrome);
  10. BEGIN
  11.   GetPalette := @P[AppPalette];
  12. END;
  13.